<?php

namespace fq\request;

class LoadRequest
{
	protected static $Union;

	public function __construct($apikey, $app_secret)
	{
		self::$Union = new RequestClient($apikey, $app_secret);
	}

	public function run($param_object, $is_array = false)
	{
		$result = self::$Union->play($param_object);
		if ($is_array) {
			$result = json_decode($result, true);
		}
		return $result;
	}
}